<?php
$this->beginBlock('main');
echo $this->renderBlock('toolbar');
if($this->hasBlock('filter')):
?>
<div class="filter">
<form id="filter_form" mehtod="get">
<?php echo $this->renderBlock('filter'); ?>
</form>
</div>
<?php endif; ?>
<?php if($this->hasBlock('gridtab')): ?>
<div class="gridtab">
<?php echo $this->renderBlock('gridtab'); ?>
</div>
<?php endif; ?>
<form id="grid_form" method="post" style="clear:both;" action="<?php echo $this->getUrl(NULL)?>">
<?php echo $this->renderBlock('grid'); ?>
<div class="pagination">
<?php
if($this->hasBlock('pagination')):
	echo $this->renderBlock('pagination');
else:
	echo $this->pagination($this->recordCount)->toHtml();
endif;
?>
</div>
</form>
<?php
$this->endBlock();
echo $this->extend('template'.DS.'default');